<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            constructor (name,age){   // 里边专门用来写属性  等用于 我们
                this.name = name
                this.age = age
            }
            sayHello(){
                return this.name+'正在吃九转大肠';
            }
            
            test(){
                return this.age
            }
            
            sing(){
                return this.name+'正在唱'+this.age
            }
	}

	
	
	const p1 = new Person('caixukun',18);
    console.log(p1.sayHello());

	const p2 = new Person('kunkun',19);
    console.log(p2.sayHello());
    </script>
</body>

</html>